 package net.go176.backpack.command;
 
 import java.util.ArrayList;
 import java.util.List;

 import net.go176.backpack.core.CoreHelper;
 import net.go176.backpack.core.DataType;
 import org.bukkit.command.Command;
 import org.bukkit.command.CommandSender;
 
 
 public class CmdInfo
   extends CommandBase
 {
   public CmdInfo(CommandManager cmdMan) {
     super(cmdMan);
     this.labels.add("info");
     this.description = "Check plugin info";
     this.permission = "mybackpack.command.info";
   }
 
   
   public void execute(CommandSender cs, Command cmd, String label, String[] args) {
     CoreHelper coreHelper = this.cmdMan.p.getCoreHelper();
     List<String> info = new ArrayList<>();
     info.add("&7&l====[My Backpack]====");
     info.add("&3&o&n  Developed by SaraLab");
     info.add("&7Running Info:");
    info.add("  &5NMS Version: &r" + coreHelper.nmsVersion);
     info.add("  &5OBC Version: &r" + coreHelper.obcVersion);
     info.add("  &5Applied Cores:"); byte b; int i; DataType[] arrayOfDataType;
     for (i = (arrayOfDataType = DataType.values()).length, b = 0; b < i; ) { DataType type = arrayOfDataType[b];
       info.add("  - &d" + type.name + ": &r" + String.valueOf(coreHelper.getAppliedCore(type))); b++; }
     
     info.add("&7Plugin Info:");
     info.add("  &6Version: &r" + this.cmdMan.p.getDescription().getVersion());
     info.add("  &6Authors: &rRaycusMX, Sanityko");
     CommandManager.sendMsg(cs, info.<String>toArray(new String[info.size()]));
   }
 
   
   protected List<String> tabComplete(CommandSender cs, Command cmd, String label, String[] args) {
     return new ArrayList<>(0);
   }
 }


/* Location:              D:\User\Xuan\Downloads\MyBackpack1.2.5.jar!\net\saralab\mybackpack\command\CmdInfo.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.1.3
 */